//package com.applink.sell_proof.adapter;
//
//import java.util.ArrayList;
//
//import android.view.LayoutInflater;
//import android.view.View;
//import android.view.ViewGroup;
//import android.widget.BaseAdapter;
//import android.widget.TextView;
//
//import com.applink.sell_proof.EMarketing;
//import com.applink.sell_proof.R;
//import com.applink.sell_proof.fragment.RewardStatementFragment;
//import com.applink.sell_proof.model.NewReward;
//import com.applink.sell_proof.model.Reward;
//
//public class RewardStatementAdapter extends BaseAdapter{
//	private LayoutInflater mInflater;
//	private Reward reward;
//	private ArrayList<NewReward> mData = new ArrayList<NewReward>();
//	
//	public RewardStatementAdapter(ArrayList<NewReward> data){
//		mInflater = LayoutInflater.from(EMarketing.getInstance()
//				.getApplicationContext());
////		for(int i = 0;i<data.size();i++){
////			
////		}
//		
//		this.mData = data;
//	}
//
//	@Override
//	public int getCount() {
//		return mData.size();
//	}
//
//	@Override
//	public Object getItem(int position) {
//		return position;
//	}
//
//	@Override
//	public long getItemId(int position) {
//		return position;
//	}
//
//	@Override
//	public View getView(int position, View convertView, ViewGroup parent) {
//		ChildHolder holder;
//		if (convertView == null) {
//			holder = new ChildHolder();
//			convertView = mInflater.inflate(R.layout.redeem_item, null);
//			holder.reward_type = (TextView) convertView
//					.findViewById(R.id.reward_type);
//			holder.reward_name = (TextView) convertView
//					.findViewById(R.id.reward_name);
//			holder.redeem_product = (TextView) convertView
//					.findViewById(R.id.redeem_product);
//			holder.redeem_status = (TextView) convertView
//					.findViewById(R.id.redeem_status);
//			convertView.setTag(holder);
//		} else {
//			holder = (ChildHolder) convertView.getTag();
//		}
//		holder.redeem_status.setVisibility(View.GONE);
//		holder.reward_type.setText(mData.get(position).getRewardType());
//		//holder.reward_name.setText(mData.get(position).getProgramName());
//		holder.redeem_product.setText(String.valueOf((mData.get(position)
//				.getRewardAmount())));
//		
//		//holder.redeem_status.setText(String.valueOf(mData.get(position).getObjectID()));
//		return convertView;
//	}
//	
//	private class ChildHolder {
//		TextView reward_type;
//		TextView reward_name;
//		TextView redeem_product;
//		TextView redeem_status;
//	}
//
//}
